package com.example.sandbox.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("商户请求实体")
public class TransferMerchantRequest {

    @ApiModelProperty(value = "商户号", required = true)
    private String mchNo; // 商户号

    @ApiModelProperty(value = "代付订单号\t", required = true)
    private String transferId;

    @ApiModelProperty(value = "商户订单号", required = true)
    private String mchOrderNo; // 商户生成的订单号，与payOrderId二者传一即可

    @ApiModelProperty(value = "请求时间", required = true)
    private long reqTime; // 请求接口时间, 13位时间戳

    @ApiModelProperty(value = "签名", required = true)
    private String sign; // 签名值，详见签名算法

    // 构造方法
    public TransferMerchantRequest(String mchNo, String payOrderId, String mchOrderNo, long reqTime, String sign) {
        this.mchNo = mchNo;
        this.transferId = payOrderId;
        this.mchOrderNo = mchOrderNo;
        this.reqTime = reqTime;
        this.sign = sign;
    }

    // 默认构造方法
    public TransferMerchantRequest() {
        // 默认构造器
    }
}